import { createSSRApp } from 'vue'
import Vant from 'vant'
import 'vant/lib/index.css'
import { createPinia } from 'pinia'
import App from './App.vue'

export function createApp() {
  const app = createSSRApp(App)

  // 安装 Pinia
  app.use(createPinia())
  app.use(Vant)

  return {
    app
  }
}
